home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
tsca
/
gradtest.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
2KB
|
92 lines
VERSION 2.00
Begin Form Gradtest
Caption = "Scroll Test"
ClientHeight = 4020
ClientLeft = 1425
ClientTop = 1485
ClientWidth = 7575
Height = 4425
Left = 1365
LinkTopic = "Form1"
ScaleHeight = 4020
ScaleWidth = 7575
Top = 1140
Width = 7695
Begin PictureBox Picture3
Height = 855
Left = 1200
ScaleHeight = 55
ScaleMode = 3 'Pixel
ScaleWidth = 87
TabIndex = 2
Top = 1920
Width = 1335
End
Begin PictureClip gradb
Cols = 20
Location = "7185,990,120,240"
Picture = GRADTEST.FRX:0000
End
Begin TextBox Text1
Height = 285
Left = 3720
TabIndex = 3
Text = "Text1"
Top = 1440
Width = 1095
End
Begin Timer Timer1
Interval = 10
Left = 720
Top = 3240
End
Begin CommandButton Command2
Caption = "End"
Height = 375
Left = 6240
TabIndex = 1
Top = 3240
Width = 1215
End
Begin CommandButton Command1
Caption = "Start"
Height = 375
Left = 6240
TabIndex = 0
Top = 2760
Width = 1215
End
End
Dim n1 As Integer
Dim n2 As Integer
Sub Command1_Click ()
Timer1.Enabled = -1
End Sub
Sub Command2_Click ()
End
End Sub
Sub Form_Load ()
Text1.Text = ""
Gradb.ClipY = 0
Gradb.ClipWidth = 88
Gradb.ClipHeight = 56
Timer1.Enabled = 0
End Sub
Sub Timer1_Timer ()
Dim j As Integer
Text1.Text = Time
If n1 > 782 Then n1 = 0
n2 = n1
If n1 > 391 Then
n2 = 782 - n1
End If
Gradb.ClipX = n2
Picture3.Picture = Gradb.Clip
n1 = n1 + 1
End Sub